<?php
defined('IN_TS') or die('Access Denied.');
	/* 
	 * 是否有新消息
	 */
	
	$userid = $_GET['userid'];
	$newMsgNum = $DB->once_num_rows("select * from ".dbprefix."app_message where touserid='$userid' and isread='0'");
	
	if($newMsgNum == '0'){
		echo '0';
	}else{
		echo '1';
	}